<?php

class GreskaPeer extends BaseGreskaPeer
{
   public static $tip = array('predlog' => 1, 'greska' => 2);
   public static $status = array('neresen' => 0, 'procitan' => 1, 'resen' => 2, 'obavesten' => 3);

   public static function getTips()
   {
     return array_flip(self::$tip);
   }

   public static function getStatuss()
   {
     return array_flip(self::$status);
   }

   public static function neprocitane()
   {
      return DbFinder::from('Greska')->where('Status', GreskaPeer::$status['neresen'])->count();
   }
}